<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  <script src="src/core.js"></script>
        <script src="src/lib-typedarrays.js"></script>
        <script src="src/x64-core.js"></script>
        <script src="src/enc-utf16.js"></script>
        <script src="src/enc-base64.js"></script>
        <script src="src/md5.js"></script>
        <script src="src/sha1.js"></script>
        <script src="src/sha256.js"></script>
        <script src="src/sha224.js"></script>
        <script src="src/sha512.js"></script>
        <script src="src/sha384.js"></script>
        <script src="src/sha3.js"></script>
        <script src="src/ripemd160.js"></script>
        <script src="src/hmac.js"></script>
        <script src="src/pbkdf2.js"></script>
        <script src="src/evpkdf.js"></script>
        <script src="src/cipher-core.js"></script>
        <script src="src/mode-cfb.js"></script>
        <script src="src/mode-ctr.js"></script>
        <script src="src/mode-ofb.js"></script>
        <script src="src/mode-ecb.js"></script>
        <script src="src/pad-ansix923.js"></script>
        <script src="src/pad-iso10126.js"></script>
        <script src="src/pad-zeropadding.js"></script>
        <script src="src/pad-iso97971.js"></script>
        <script src="src/pad-nopadding.js"></script>
        <script src="src/rc4.js"></script>
        <script src="src/rabbit.js"></script>
        <script src="src/rabbit-legacy.js"></script>
        <script src="src/aes.js"></script>
        <script src="src/tripledes.js"></script>
        <script src="entry/js/base64.js"></script>
  </head>
  <body>
    <h2>request test</h2>
    <a href="#" id="user">click to post:</a>
    <input type="text" value='GetUserBaseInfo.action' size=20 id='method'/>
    <input type="text" value='6cr1Fybe3f9SGa+zFNFUylHCBxihay4NfTAOu5HmhM9vSf3JLpDSeVgTFnLvKZSU' size=100 id='rawdata'/>
    <br>
    log:<br>
    Request: 
    <span id="request">
     </span><br>
    Response: 
    <span id="response">
     </span>
    <script src="entry/js/jquery-2.2.3.min.js"></script> 
    <script>
      (function(my){
        $('#user').click(function(){
          $('#request').html($('#rawdata').val());
          $.ajax({
                type:'POST',
                url:'http://localhost:8080/TingCheDangServer/' + $('#method').val(),
                // contentType:'application/x-www-form-urlencoded;charset=gb2312',
		// headers:{'Content-Type':'text/html; charset=gbk'},
		dataType:'json',
                data:'EncedParams=' + encodeURIComponent($('#rawdata').val()),
                success:function(data){
                   $('#response').html(JSON.stringify(data));
                   console.log(data);
                 }
		 });
              });
      })(this);
      </script>
    </body>
  </html>
